;(function($) {
	
	var setHtmlBodyCss = function() {
		
		var strHTML = [];
		strHTML.push("<style><!--");
		strHTML.push("html, body {");
		strHTML.push("\twidth: 100%;");
		strHTML.push("\theight: 100%;");
		strHTML.push("\tmargin: 0px;");
		strHTML.push("\tpadding: 0px;");
		strHTML.push("}");
		strHTML.push("--></style>");

		$("head").append( strHTML.join( "\n" ) );
		
	};

	var appendImageToBody = function(strImgUrl, strLinkUrl) {
		
		var objImg = new Image();
		
		objImg.onload = objImg.onreadystatechange = function() {

			var elmDiv;
			
			$(document.body).append(
				elmDiv = $("<div>").css({
					"width": "100%",
					"height": "100%",
					"position": "relative",
					"overflow": "hidden"
				}).append(
					$("<div>").css({
						"top": "50%",
						"left": "50%",
						"position": "absolute",
						"width": this.width,
						"height": this.height
					}).append(
						$("<div>").css({
							"top": "-50%",
							"left": "-50%",
							"position": "relative",
							"background-image": "url('" + strImgUrl + "')",
							"width": this.width,
							"height": this.height
						})
					)
				)
			);
			
			if (strLinkUrl !== null) {
				elmDiv.find("div>div").css("cursor", "pointer").click(function() {
					window.open( strLinkUrl );
				});
			}

		}
		
		objImg.src = strImgUrl;

	};
	
	var setGET

	$.extend({
		
		_PATH: {
			
			ROOT: "./"
			
		},
		
		Engine: function() {
			/*
			var strImgUrl = isset( $.$_GET["vivian"] ) ? "vivian" : "john";
			
			setHtmlBodyCss();
			appendImageToBody( $._PATH.ROOT + "img/" + strImgUrl + ".jpg" );
			
			$("title").html( ucfirst( strImgUrl ) );
			*/

			setHtmlBodyCss();
			appendImageToBody(
				"http://service.t.sina.com.cn/widget/qmd/1427538944/28da7c8b/7.png",
				"http://weibo.com/1427538944?s=6uyXnP"
			);
		},
		
	});
	
})(jQ);
